package com.seveneight.baijiesteward.ui.main.contract;

import android.content.Context;

import com.seveneight.baijiesteward.bean.UserBean;
import com.seveneight.baijiesteward.http.MyCallBack;

import okhttp3.RequestBody;

/**
 * Created by user1 on 2018/2/23.
 */

public interface LoginContract {

    interface LoginView {
        void reBackkUser(UserBean bean);

        void backUserInfo(UserBean bean);
    }

    interface LoginModel {
        void login(Context context, RequestBody body, MyCallBack<UserBean> callBack);

        void getUserInfo(String message, Context context, RequestBody body, MyCallBack<UserBean> callBack);
    }

    interface LoginPresenter {
        void login(Context context, RequestBody body);

        void getUserInfo(String message, Context context, RequestBody body);
    }

}
